package DAO;

import java.util.HashMap;

/**
 *
 * @author flevel
 */
public abstract class DAO<T> {

    protected Connect connexion = null;

    //public DAO(Connect connexionValue){
    //            this.connexion = connexionValue;
    //    }
    //public abstract boolean create(T obj);
    public abstract boolean delete(T obj);
    //public abstract boolean update(T obj);

    public abstract boolean save(T obj);

    public abstract T find(int id);

    public abstract HashMap<Integer, T> getAll();

    public abstract HashMap<Integer, T> search(String searchValue, Integer idCatValue);
}
